﻿CREATE TABLE [dbo].[AddressInfo] (
    [ID]         BIGINT        IDENTITY (1, 1) NOT NULL,
    [sfzh]       NVARCHAR (18) NOT NULL,
    [Ridgepole]  NVARCHAR (50) NOT NULL,
    [Number]     VARCHAR (50)  NOT NULL,
    [CreateTime] DATETIME      NOT NULL,
    [UpdateTime] DATETIME      NOT NULL DEFAULT getdate(),
    CONSTRAINT [PK_AddressInfo] PRIMARY KEY CLUSTERED ([ID] ASC)
);


GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'身份证号',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'AddressInfo',
    @level2type = N'COLUMN',
    @level2name = N'sfzh'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'栋',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'AddressInfo',
    @level2type = N'COLUMN',
    @level2name = N'Ridgepole'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'号',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'AddressInfo',
    @level2type = N'COLUMN',
    @level2name = N'Number'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'创建时间',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'AddressInfo',
    @level2type = N'COLUMN',
    @level2name = N'CreateTime'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
    @value = N'最后修改时间',
    @level0type = N'SCHEMA',
    @level0name = N'dbo',
    @level1type = N'TABLE',
    @level1name = N'AddressInfo',
    @level2type = N'COLUMN',
    @level2name = N'UpdateTime'